2007-01-14 20:22:40 UTC
Hi,
Probably a stupid mistake on my part, but when I try to start SICM I get:
[sicm@badger ~]$ /usr/bin/perl /opt/sicm/sicm.pl -c /etc/opt/sicm/config.xml
Warning |Step value not defined. Using default=300
Warning |mail_server is not configured. No e-mail alerts will be sent.
__________|Loop start Sun Jan 14 20:07:06 2007____________
Use of uninitialized value in multiplication (*) at /opt/sicm/sicm.pl line 2127.
Use of uninitialized value in multiplication (*) at /opt/sicm/sicm.pl line 2127.
Use of uninitialized value in division (/) at /opt/sicm/sicm.pl line 2160.
Illegal division by zero at /opt/sicm/sicm.pl line 2160.
I belieive I have installed all the appropriate modules with CPAN. All files and directories are owned by UID/GID sicm. I have tried running SICM as both user sicm and as root with the same result just in case it was a permissions issue. Perl seems to be working fine with other scripts.
Logfile:
1168804115|main |Setting permissions: user:"sicm" and group:"sicm"
1168804115|main |Creating PID:"/var/run/sicm.pid"
Versions:
SICM: 0.95
OS: Redhat linux FC4, kernel 2.6.17-1.2142_FC4
Perl: v5.8.6 built for i386-linux-thread-multi
config.xml:
<opt>
<web_dir>/var/www/html/sicm</web_dir>
<targetfile>/etc/opt/sicm/targets.xml</targetfile>
<templatefile>/etc/opt/sicm/templates.xml</templatefile>
<alert_file>/var/opt/sicm/alert.xml</alert_file>
<nix_mgt user="root" group="root" PID_path="/var/run/sicm.pid" /nix_mgt>>
<log_file>/var/log/sicm/sicm.log</log_file>
<ping_file>/bin/ping</ping_file>
<imgformat>PNG</imgformat>
<width>680</width>
<height>120</height>
<step>300</step>
<step_timeout>2</step_timeout>
<port>161</port>
<retries>2</retries>
<timeout>3</timeout>
<ping_count>4</ping_count>
<graph_font_color>555555</graph_font_color>
<graph_tab>30</graph_tab>
<mail_server>127.0.0.1</mail_server>
<mail_from>
noc@essenet.co.uk.com</mail_from>
<log_purge>7</log_purge>
</opt>
TIA !
Olly